package com.example.demo001.utils;

import java.util.Random;

public class RandomUtil {
    private RandomUtil() {
    }
    private static final Random random = new Random();
    // 生成一个六位的随机数
    public static String generateRandomNumber() {

        // 生成 [100000, 999999] 范围内的随机数
        int randomNumber = 100000 + random.nextInt(900000);

        return  randomNumber+"";
    }
}
